package com.itstudy.moonapiorderserviceimpl.controller;

import com.itstudy.moonapiorderservice.service.IOrderService;
import com.itstudy.moonapiorderserviceimpl.feign.MemberServiceFeigin;
import com.itstudy.mooncommon.baseresponse.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xianpengcheng@aliyun.com
 * @create 2019-04-12 16:34
 */

@RestController
@RequestMapping("/orderService")
public class OrderServiceController  implements IOrderService {

    @Autowired
    private MemberServiceFeigin memberServiceFeigin;

    @RequestMapping("/orderToMember")
    public R orderToMember(String name, Integer age) {
        return memberServiceFeigin.getUserInfo(name, age);
    }

}
